package io.renren.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 系统参数相关Key
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-03-26 10:33
 */
public class ConfigConstant {

    public static final String SESSION_USER_KEY = "SESSION_USER_KEY";

    //系统基本的url
    public static final String BASE_URL = "https://dx-ex.adp5.cn/ex";

    // public static final String DEFAULT_BOOK_COVER = "http://img.zcool.cn/community/012cb757939a8e0000018c1b7482be" +".jpg@1280w_1l_2o_100sh.png";
    public static final String DEFAULT_BOOK_COVER = "http://mmbiz.qpic.cn/mmbiz_jpg/08ou3Vfv4IYoTAglUt1suQrr3VtibzZ9PboN7XA9DkbYQtA1MyRRorGCFlsnsicjEIGqVJhdOjtFqjD7tp3p3AZA/0?wx_fmt=jpeg";

    public static final String DEFAULT_GRADE_ID = "36";

    public static final String DEFAULT_SEASON_ID = "94";

    public static final String PAGE_START = "第";
    public static final String PAGE_END = "页";

    public static Map<String, Integer> wtonDict = new HashMap<String, Integer>(); // 定义一个汉字与数字的映射关系

    static {
        wtonDict.put("一", 1);
        wtonDict.put("二", 2);
        wtonDict.put("三", 3);
        wtonDict.put("四", 4);
        wtonDict.put("五", 5);
        wtonDict.put("六", 6);
        wtonDict.put("七", 7);
        wtonDict.put("八", 8);
        wtonDict.put("九", 9);
        wtonDict.put("十", 10);
        wtonDict.put("壹", 1);
        wtonDict.put("贰", 2);
        wtonDict.put("参", 3);
        wtonDict.put("肆", 4);
        wtonDict.put("伍", 5);
        wtonDict.put("陆", 6);
        wtonDict.put("柒", 7);
        wtonDict.put("捌", 8);
        wtonDict.put("玖", 9);
        wtonDict.put("拾", 10);
        wtonDict.put("两", 2);
        wtonDict.put("俩", 2);
        wtonDict.put("仨", 3);
    }
}
